#ifndef QUEUE_H
#define QUEUE_H

#include <stdio.h>
#include "stm32f4xx_hal.h"

struct queue_t {
	uint32_t size;
	uint32_t tail;
	uint32_t head;
	uint8_t *data;
};

void QueueInit(struct queue_t *queue, uint8_t *buf, uint32_t size);
int QueueEnQueue(struct queue_t *queue, const uint8_t *data);
int QueueDeQueue(struct queue_t *queue, uint8_t *data);

#endif // #ifndef QUEUE_H
